---
layout: default
nav: attributes > ic-disable-when-doc-inactive
---

<div class="container">

  <div class="row">
    <div class="col-md-12">

      <h2><code>ic-disable-when-doc-inactive</code> - Disable When Document Hidden Attribute</h2>

      <h3>Summary</h3>

      <p>The <code>ic-disable-when-doc-inactive</code> attribute tells Intercooler to not to issue a given request if the
        document does not have focus, as determined by the <code>document.hasFocus()</code> property.  This allows you to
      pause polling, for example, when a document is not focused.  If you wish for polling to occur even if the window
      is inactive (but still potentially visible), consider using the
        <a href="/attributes/ic-disable-when-document-hidden.html>">
          <code>ic-disable-when-document-hidden</code>
        </a>
      attribute instead.</p>

      <h3>Syntax</h3>

      <p>The value of the attribute should be <code>true</code> or <code>false</code></p>

      <h3>Dependencies</h3>

      <p><code>ic-disable-when-doc-inactive</code> has no dependency implications.</p>

    </div>
  </div>
</div>